package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @ProjectName: AptitudeAndroid
 * @Package: com.cj.mobile.iabp.mvp.model.entity
 * @ClassName: AddSalesCategoryInfo
 * @Description: 提交 销售商品
 * @Author: WLY
 * @CreateDate: 2023/4/14 16:39
 */
public class AddSalesCategoryInfo implements Parcelable {
    public AddSalesCategoryInfo() {
    }

    public AddSalesCategoryInfo(String catId, String catName, String stock, double weight, String productId,String productName, String unit) {
        this.catId = catId;
        this.catName = catName;
        this.stock = stock;
        this.weight = weight;
        this.productId = productId;
        this.productName = productName;
        this.unit = unit;
    }

    // 品类id
    private String catId = "";
    // 品类名称
    private String catName = "";
    // 库存
    private String stock = "";
    // 销售重量(吨)
    private double weight = 0;
    // 产品id
    private String productId;
    // 单位
    private String unit;
    // 产品名称
    private String productName;

    public String getCatId() {
        return catId;
    }

    public void setCatId(String catId) {
        this.catId = catId;
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.catId);
        dest.writeString(this.catName);
        dest.writeString(this.stock);
        dest.writeDouble(this.weight);
        dest.writeString(this.productId);
        dest.writeString(this.unit);
        dest.writeString(this.productName);
    }

    public void readFromParcel(Parcel source) {
        this.catId = source.readString();
        this.catName = source.readString();
        this.stock = source.readString();
        this.weight = source.readDouble();
        this.productId = source.readString();
        this.unit = source.readString();
        this.productName = source.readString();
    }

    protected AddSalesCategoryInfo(Parcel in) {
        this.catId = in.readString();
        this.catName = in.readString();
        this.stock = in.readString();
        this.weight = in.readDouble();
        this.productId = in.readString();
        this.unit = in.readString();
        this.productName = in.readString();
    }

    public static final Creator<AddSalesCategoryInfo> CREATOR = new Creator<AddSalesCategoryInfo>() {
        @Override
        public AddSalesCategoryInfo createFromParcel(Parcel source) {
            return new AddSalesCategoryInfo(source);
        }

        @Override
        public AddSalesCategoryInfo[] newArray(int size) {
            return new AddSalesCategoryInfo[size];
        }
    };
}
